package com.njwb.day03;

public class Test07 {
    public static void main(String[] args) {
        fn();
        fn(1,2);
        fn(1.3,10);
        fn(10,1.3);
        System.out.println();
        System.out.println(10);
        System.out.println("hello");
        System.out.println(true);
        System.out.println('A');
    }

    //方法重载:同一个类中，方法名相同，参数列表不一致
    public static void fn(){
        System.out.println("Test07.fn");
    }

    public static void fn(int i){
        System.out.println("Test07.fn int");
    }

    public static void fn(int i,int j){
        System.out.println("Test07.fn int int");
    }

    public static void fn(int i,double d){
        System.out.println("Test07.fn int double");
    }

    public static void fn(double d,int i){
        System.out.println("Test07.fn double int");
    }

}
